package com.zheng.shop.rpc.api;

import com.zheng.common.base.BaseService;
import com.zheng.shop.common.exception.ShopException;
import com.zheng.shop.dao.model.ShopCategory;

import java.util.List;

/**
* ShopProductCategoryService接口
* Created by shuzheng on 2017/11/7.
*/
public interface ShopCategoryService extends BaseService<ShopCategory> {
    //查找最大的排序
    Integer selectMaxSort();
    //删除单条分类
    boolean deleteProductCategory(int id);
    //批量删除
    boolean deleteBatchCategory(List<Integer> ids) throws ShopException;
    //添加分类
    boolean createProductCategory(ShopCategory productCategory, boolean copyAttribute, boolean copyParam) throws ShopException;
    //修改分类
    boolean updateProductCategory(ShopCategory productCategory) throws ShopException;
}